/********************************************************************************************/
/* TestCases.cc: Program file for testing labels.cc                                         */
/* Author: Faiz-ur Rahman                                                                   */
/* ID: 82748328                                                                             */
/* Revisions:                                                                               */
/*				03/21/12 - Initial creation                                                 */
/********************************************************************************************/


#include <iostream>
#include "dictionary.hpp"

using namespace std;

int main()
{
	// Declarations
	dictionary * dict;
	dict = new dictionary;
	unsigned int address = 0;
	int i;
	string label("a");

	// Inserting data into dictionary
	for(i=0;i<26;i++)
	{
		dict->store(label,address + i);
		label[0]++;
	}

	label = "a";

	for(i=0;i<26;i++)
	{
		cout << "Insertion #" << i+1 << ":\t" << label <<" is at memory location " << dict->searchLAB(label) << endl;
		cout << "\t\t\t" << address + i <<" gives label " << dict->searchADDR(address + i) << endl;
		label[0]++;
	}

	delete dict;
	return 0;
}
